package com.tjsinfo.backworkflow.vo;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "EDOC_OPINION")
public class EdocOpinion {
    @Id
    @Column(name = "ID")
    private String id;

    @Column(name = "EDOC_ID")
    private Long edocId;

    @Column(name = "AFFAIR_ID")
    private Long affairId;

    @Column(name = "ATTRIBUTE")
    private Integer attribute;

    @Column(name = "OPINION_TYPE")
    private Integer opinionType;

    @Column(name = "IS_HIDDEN")
    private Short isHidden;

    @Column(name = "CREATE_USER_ID")
    private BigDecimal createUserId;

    @Column(name = "CREATE_TIME")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Column(name = "POLICY")
    private String policy;

    @Column(name = "PROXY_NAME")
    private String proxyName;

    @Column(name = "NODE_ID")
    private BigDecimal nodeId;

    @Column(name = "STATE")
    private Short state;

    @Column(name = "SUB_EDOC_ID")
    private Long subEdocId;

    @Column(name = "UPDATE_TIME")
    private Date updateTime;

    @Column(name = "SUB_OPINION_ID")
    private Long subOpinionId;

    @Column(name = "DEPARTMENT_NAME")
    private String departmentName;

    @Column(name = "ACCOUNT_NAME")
    private String accountName;

    @Column(name = "DEPARTMENT_SORT_ID")
    private Integer departmentSortId;

    @Column(name = "source_summary_id")
    private Long sourceSummaryId;

    @Column(name = "CONTENT")
    private String content;
    
    @Transient
    private OrgMember orgMember;
    
    

    public OrgMember getOrgMember() {
		return orgMember;
	}

	public void setOrgMember(OrgMember orgMember) {
		this.orgMember = orgMember;
	}

	/**
     * @return ID
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return EDOC_ID
     */
    public Long getEdocId() {
        return edocId;
    }

    /**
     * @param edocId
     */
    public void setEdocId(Long edocId) {
        this.edocId = edocId;
    }

    /**
     * @return AFFAIR_ID
     */
    public Long getAffairId() {
        return affairId;
    }

    /**
     * @param affairId
     */
    public void setAffairId(Long affairId) {
        this.affairId = affairId;
    }

    /**
     * @return ATTRIBUTE
     */
    public Integer getAttribute() {
        return attribute;
    }

    /**
     * @param attribute
     */
    public void setAttribute(Integer attribute) {
        this.attribute = attribute;
    }

    /**
     * @return OPINION_TYPE
     */
    public Integer getOpinionType() {
        return opinionType;
    }

    /**
     * @param opinionType
     */
    public void setOpinionType(Integer opinionType) {
        this.opinionType = opinionType;
    }

    /**
     * @return IS_HIDDEN
     */
    public Short getIsHidden() {
        return isHidden;
    }

    /**
     * @param isHidden
     */
    public void setIsHidden(Short isHidden) {
        this.isHidden = isHidden;
    }

    /**
     * @return CREATE_USER_ID
     */
    public BigDecimal getCreateUserId() {
        return createUserId;
    }

    /**
     * @param createUserId
     */
    public void setCreateUserId(BigDecimal createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * @return CREATE_TIME
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return POLICY
     */
    public String getPolicy() {
        return policy;
    }

    /**
     * @param policy
     */
    public void setPolicy(String policy) {
        this.policy = policy;
    }

    /**
     * @return PROXY_NAME
     */
    public String getProxyName() {
        return proxyName;
    }

    /**
     * @param proxyName
     */
    public void setProxyName(String proxyName) {
        this.proxyName = proxyName;
    }

    /**
     * @return NODE_ID
     */
    public BigDecimal getNodeId() {
        return nodeId;
    }

    /**
     * @param nodeId
     */
    public void setNodeId(BigDecimal nodeId) {
        this.nodeId = nodeId;
    }

    /**
     * @return STATE
     */
    public Short getState() {
        return state;
    }

    /**
     * @param state
     */
    public void setState(Short state) {
        this.state = state;
    }

    /**
     * @return SUB_EDOC_ID
     */
    public Long getSubEdocId() {
        return subEdocId;
    }

    /**
     * @param subEdocId
     */
    public void setSubEdocId(Long subEdocId) {
        this.subEdocId = subEdocId;
    }

    /**
     * @return UPDATE_TIME
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @return SUB_OPINION_ID
     */
    public Long getSubOpinionId() {
        return subOpinionId;
    }

    /**
     * @param subOpinionId
     */
    public void setSubOpinionId(Long subOpinionId) {
        this.subOpinionId = subOpinionId;
    }

    /**
     * @return DEPARTMENT_NAME
     */
    public String getDepartmentName() {
        return departmentName;
    }

    /**
     * @param departmentName
     */
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    /**
     * @return ACCOUNT_NAME
     */
    public String getAccountName() {
        return accountName;
    }

    /**
     * @param accountName
     */
    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    /**
     * @return DEPARTMENT_SORT_ID
     */
    public Integer getDepartmentSortId() {
        return departmentSortId;
    }

    /**
     * @param departmentSortId
     */
    public void setDepartmentSortId(Integer departmentSortId) {
        this.departmentSortId = departmentSortId;
    }

    /**
     * @return source_summary_id
     */
    public Long getSourceSummaryId() {
        return sourceSummaryId;
    }

    /**
     * @param sourceSummaryId
     */
    public void setSourceSummaryId(Long sourceSummaryId) {
        this.sourceSummaryId = sourceSummaryId;
    }

    /**
     * @return CONTENT
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }
}